﻿using SqlSugar;

namespace Shop.Model.Entity.Jur;

/// <summary>
/// 6.4 权限菜单
/// </summary>
[SugarTable("jur_menu")]
public class JurMenu: BaseEntity
{
    /// <summary>
    /// 上级id,0是顶级
    /// </summary>
    public long ParentId { get; set; }
    
    /// <summary>
    /// 菜单名称
    /// </summary>
    public string MenuName { get; set; }
    
    /// <summary>
    /// 前端路由地址
    /// </summary>
    public string Path { get; set; }
    
    /// <summary>
    /// 后端API请求地址
    /// </summary>
    public string Component { get; set; }
    
    /// <summary>
    /// 类型,0菜单,1按钮
    /// </summary>
    public int MenuType { get; set; }
    
    /// <summary>
    /// 排序号
    /// </summary>
    public int Sort { get; set; }
    
    /// <summary>
    /// 权限标识
    /// </summary>
    public string Authority { get; set; }
    
    /// <summary>
    /// 状态 -1 删除，0：正常
    /// </summary>
    public int State { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreInsert = true)]
    public DateTime CreateTime { get; set; }
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdateTime { get; set; }
}